You are limited in Python packages on the client side of things, but you have full access to Javascript and HTML 5 functions. Here’s a thread that talks about using Javascript to record audio and then transfer it to the server for further processing: Audio recorder using javascript works, but how to get the recorded content into a media object?
That might give you a starting point.